<?php
/**
 * Translation class.
 * 
 * @package EICms
 * @author hcderaad
 */
class EICms_Translate {
	
	/**
	 * Translates the given string
	 *
	 * @param string $string
	 * @return string
	 */
	public static function _($string) {
		$translate = Zend_Registry::get('translate');
		if(empty($translate)) {
			throw new EICms_Exception("Translation object not initialised.");
		}
		return Zend_Registry::get('translate')->_($string);
	}
}
?>